//
//  ZCNoanswerVC.m
//  zctx
//
//  Created by apple on 16/3/15.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import "ZCNoanswerVC.h"

@interface ZCNoanswerVC ()

@end

@implementation ZCNoanswerVC

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.tabBarController.hidesBottomBarWhenPushed = YES;
    [MobClick beginLogPageView:@"ZCNoanswerVC"];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    [MobClick endLogPageView:@"ZCNoanswerVC"];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initnavegation]; //导航栏
    
    self.ImgConstraint.constant = SCREEN_WIDTH/2.3;
    
    if ([self.type  isEqualToString:@"1"]) {
        self.centerImgView.image = [UIImage imageNamed:@"Enroll_yao_no"];
    }else{
        self.centerImgView.image = [UIImage imageNamed:@"Enroll_join_no"];
    }
}

#pragma mark 导航栏
-(void)initnavegation{
    UIImageView *title_naImgaeView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 95, 20)];
    [title_naImgaeView setImage:[UIImage imageNamed:@"navigation_logo"]];
    self.navigationItem.titleView = title_naImgaeView;
    
    UIButton * leftButton = [UIButton buttonWithType:UIButtonTypeCustom];
    leftButton.frame = CGRectMake(0, 0, 19, 36);
    [leftButton setImage:[UIImage imageNamed:@"navigation_back"] forState:UIControlStateNormal];
    [leftButton addTarget:self action:@selector(backButtonPressed) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem * barButtonItem_leftNavBar = [[UIBarButtonItem alloc] initWithCustomView:leftButton];
    self.navigationItem.leftBarButtonItem = barButtonItem_leftNavBar;
}

-(void)backButtonPressed{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
